<template>
  <header class="GoodsOrder-head showfff">
    <i
      class="iconfont icon-fanhui"
      style="font-size: 20px"
      @click="$router.go(-1)"
    ></i>
    <p style="color: #5e5e5e">{{ show ? "订单列表" : "确认订单" }}</p>
    <i
      class="iconfont icon-gouwuche"
      style="font-size: 22px"
      @click="$router.push('/shoppingcart')"
    ></i>
  </header>
</template>

<script>
export default {
  data() {
    return {
      show: false,
    };
  },
  mounted() {
    //如果不是hotSongList路由组件,隐藏序号
    if (this.$route.path == "/goodsorderlist") {
      this.show = true;
    }
  },
};
</script>

<style lang="scss" scoped>
.GoodsOrder-head {
  display: flex;
  height: 45px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-bottom: 1px solid rgb(189, 184, 184);
  text-align: center;
  i {
    flex: 0 0 40px;
  }
}
</style>